﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Model
{
    public class TrackSegmentModel : DeviceBaseModel
    {
        public TrackSegmentModel()
            : base()
        {
            _tsDevice = new TrackSegmentDevice();
        }

        public TrackSegmentModel(TrackSegmentDevice ts, Device device)
            : base(device)
        {
            _tsDevice = ts;
        }

        TrackSegmentDevice _tsDevice;

        public TrackSegmentDevice TrackSegment
        {
            get
            {
                return _tsDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _tsDevice.DeviceID;
            }
            set
            {
                _tsDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }
    }
}
